﻿
Partial Class Default2
    Inherits System.Web.UI.Page
    Dim ocnAlumno As New Negocio.Alumno()

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            ocnAlumno.RegistrarAlumno(Me.TBnombre.Text, Me.TBdni.Text, Me.TBfechanac.Text, Me.TBemail.Text, Me.TBdomicilio.Text, Me.RBlista.Text)
        Catch ex As Exception
            Session.Add("Error", ex.Message)
            Response.Redirect("ManejarErrores.aspx")
        End Try
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub
End Class
